.class Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;
.super Landroid/widget/BaseAdapter;
.source "MyURLCollectionActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "MySimpleAdapter"
.end annotation


# instance fields
.field inflater:Landroid/view/LayoutInflater;

.field final synthetic this$0:Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;


# direct methods
.method public constructor <init>(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)V
    .locals 1
    .parameter

    .prologue
    .line 305
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;->this$0:Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;

    .line 303
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 304
    invoke-static {p1}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->access$0(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;->inflater:Landroid/view/LayoutInflater;

    return-void
.end method

.method static synthetic access$0(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;)Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;
    .locals 1
    .parameter

    .prologue
    .line 301
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;->this$0:Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;

    return-object v0
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 308
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;->this$0:Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->access$1(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .parameter "position"

    .prologue
    .line 313
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;->this$0:Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->access$1(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .parameter "position"

    .prologue
    .line 318
    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 8
    .parameter "position"
    .parameter "convertView"
    .parameter "parent"

    .prologue
    .line 323
    const/4 v4, 0x0

    .line 324
    .local v4, v:Landroid/view/View;
    if-nez p2, :cond_0

    .line 325
    iget-object v5, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;->inflater:Landroid/view/LayoutInflater;

    const v6, 0x7f030018

    const/4 v7, 0x0

    invoke-virtual {v5, v6, v7}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 328
    :goto_0
    iget-object v5, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;->this$0:Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->access$2(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)[I

    move-result-object v5

    rem-int/lit8 v6, p1, 0x2

    aget v5, v5, v6

    invoke-virtual {v4, v5}, Landroid/view/View;->setBackgroundColor(I)V

    .line 329
    const v5, 0x7f0a0055

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 330
    .local v3, title:Landroid/widget/TextView;
    iget-object v5, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;->this$0:Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->access$1(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Ljava/util/List;

    move-result-object v5

    invoke-interface {v5, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/teewoo/app/bus/model/collection/URLCollection;

    invoke-virtual {v5}, Lcom/teewoo/app/bus/model/collection/URLCollection;->getTitle()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 331
    const v5, 0x7f0a0057

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 332
    .local v1, link:Landroid/widget/TextView;
    iget-object v5, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;->this$0:Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->access$1(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Ljava/util/List;

    move-result-object v5

    invoke-interface {v5, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/teewoo/app/bus/model/collection/URLCollection;

    invoke-virtual {v5}, Lcom/teewoo/app/bus/model/collection/URLCollection;->getLink()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 333
    const v5, 0x7f0a0058

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 334
    .local v2, saveTime:Landroid/widget/TextView;
    iget-object v5, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;->this$0:Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->access$1(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Ljava/util/List;

    move-result-object v5

    invoke-interface {v5, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/teewoo/app/bus/model/collection/URLCollection;

    invoke-virtual {v5}, Lcom/teewoo/app/bus/model/collection/URLCollection;->getSaveTime()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 335
    const v5, 0x7f0a0059

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    .line 337
    .local v0, delete:Landroid/widget/Button;
    const/4 v5, 0x0

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setFocusable(Z)V

    .line 338
    new-instance v5, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter$1;

    invoke-direct {v5, p0, p1}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter$1;-><init>(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;I)V

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 352
    return-object v4

    .line 327
    .end local v0           #delete:Landroid/widget/Button;
    .end local v1           #link:Landroid/widget/TextView;
    .end local v2           #saveTime:Landroid/widget/TextView;
    .end local v3           #title:Landroid/widget/TextView;
    :cond_0
    move-object v4, p2

    goto :goto_0
.end method
